package org.jeecg.glr.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 海康摄像头
 * 原来的TBVideo
 * @Author: jeecg-boot
 * @Date:   2020-02-11
 * @Version: V1.0
 */
@Data
@TableName("glr_video")
public class GlrVideo implements Serializable {
    private static final long serialVersionUID = 1L;
    
	/**主键*/
	@TableId(type = IdType.UUID)
    private String id;
	/**创建人*/
	@Excel(name = "创建人", width = 15)
    private String createBy;
	/**创建日期*/
	@Excel(name = "创建日期", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;
	/**更新人*/
	@Excel(name = "更新人", width = 15)
    private String updateBy;
	/**更新日期*/
	@Excel(name = "更新日期", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
	/**所属部门*/
	@Excel(name = "所属部门", width = 15)
    private String sysOrgCode;
	/**所属公司*/
	@Excel(name = "所属公司", width = 15)
    private String sysCompanyCode;

	@Excel(name = "名称") private String name; //名称

	@Excel(name = "编号") private String code; //编号

	@Excel(name = "设备型号") private String equipmentModel;//设备型号DS-2DC7423IW-A

	@Excel(name = "设备序列号") private String equipmentSerial; //设备序列号D12287823

	@Excel(name = "设备通道号") private String equipmentChannel;//设备通道号1

	@Dict(dicCode = "glr_equipment_status")
	@Excel(name = "设备状态") private String equipmentStatus;//设备状态 sf_yn  YN

	@Dict(dicCode = "glr_video_equipment_style_type")
	@Excel(name = "设备样式类型") private String equipmentStyleType;//设备样式类型10球形11枪式

	@Dict(dicCode = "glr_video_equipment_function_type")
	@Excel(name = "设备功能类型") private String equipmentFunctionType;//设备功能类型10普通11智能

	@Excel(name = "云台IP") private String ytIp;//云台IP 192.168.1.64

	@Excel(name = "云台用户名") private String ytUsername;//云台用户名admin

	@Excel(name = "云台口令") private String ytPassword;//云台口令ytmsse!@#456

	@Excel(name = "设备验证码") private String equipmentVerification;//设备验证码

	@Dict(dicCode = "glr_video_equipment_connection")
	@Excel(name = "设备联接方式") private String equipmentConnection;//设备联接方式equipmentConnection

	@Excel(name = "设备手机号") private String equipmentMobile;//设备手机号

	@Excel(name = "预置点列表") private String equipmentPreset;//预置点列表

	@Excel(name = "设备url") private String equipmentUrl;//设备url

	@Excel(name = "设备上传码") private String equipmentUploadCode;//设备上传码

	@Excel(name = "所属设备") private String relevanceId; //所属设备

	//@Excel(name = "状态") private String status; //状态  现在不用了 改成equipmentStatus

	@Excel(name = "IP") private String ip; //IP

	@Excel(name = "端口") private String port; //端口

	@Excel(name = "用户名") private String username; //用户名

	@Excel(name = "密码") private String pwd; //密码

	@Excel(name = "经度") private String longitude; //经度

	@Excel(name = "纬度") private String latitude; //纬度

	//@Excel(name = "所属萤石ID") private String videoYsId; //所属萤石ID 现在不用了改成萤石编码
	@Excel(name = "所属萤石编码") private String videoYsCode; //所属萤石编码

	@Excel(name = "项目编号", width = 15) private String projectCode;  //	所属项目编号

	@Excel(name = "所属路灯灯杆编号") private String lightPoleCode; //所属路灯灯杆编号

	@Excel(name = "所属网关代码")  private String gataWayCode; //所属网关代码

	@Excel(name = "物料编码")  private String materialCode; //物料编码

	@Transient private transient GlrVideoYs glrVideoYs; //所属萤石

	@Transient private transient String light; //此摄像头所在的灯杆

	@Transient private transient String statusImage; //此摄像头状态图标

}
